#pragma once
#include <SFML/Graphics.hpp>
#include <vector>
#include <ctime>
#include <iostream>
#include <memory>
#include <cstdlib>
#include <ctime>
class Background {
public:
    std::vector<sf::Sprite> backgroundSprites;
    std::vector<sf::Sprite> obstacleSprites;
    std::vector<sf::Sprite> powerupSprites;
    std::vector<sf::Sprite> healthSprites;
    std::vector<sf::Texture> obstacleTextures;
    std::vector<sf::Texture> powerupTextures;
    sf::Texture healthTexture;

    sf::Texture healthfull;
    sf::Texture healthempty;
    sf::Texture powerfull;
    sf::Texture powerempty;
    sf::Vector2f positionMarker;
    sf::Sprite healthfullSpite;
    sf::Sprite healthemptySpite;
    sf::Sprite powerfullSpite;
    sf::Sprite poweremptySpite;
    sf::Sprite mainbackground;
    sf::Sprite scorebackground;
    Background(sf::Texture& bgTexture, sf::Texture& obstacleTexture, sf::Texture& powerupTexture,sf::Texture&health);
    int backgroundnumber = 0;

    void update(const sf::Vector2f& characterPosition);
};
